﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using WroxGallery.Models;

namespace WroxGallery.Tests.Models
{
    /// <summary>
    /// Summary description for ConfigurationTest
    /// </summary>
    [TestClass]
    public class ConfigurationTest
    {

        [TestMethod]
        public void Configuration_Can_Get_GalleryName()
        {
            GalleryConfiguration config = new GalleryConfiguration();
            config.GalleryName = "Gallery Name";
            Assert.AreEqual("Gallery Name", config.GalleryName);
        }

        [TestMethod]
        public void Configuration_Can_Get_FlickrUserName()
        {
            GalleryConfiguration config = new GalleryConfiguration();
            config.FlickrUserName = "abcd@01";
            Assert.AreEqual("abcd@01", config.FlickrUserName);
        }

        [TestMethod]
        public void Configuration_Can_Get_UserName()
        {
            GalleryConfiguration config = new GalleryConfiguration();
            config.Username = "admin";
            Assert.AreEqual("admin", config.Username);
        }

        [TestMethod]
        public void Configuration_Can_Get_Password()
        {
            GalleryConfiguration config = new GalleryConfiguration();
            config.Password = "admin";
            Assert.AreEqual("admin", config.Password);
        }

        [TestMethod]
        public void Configuration_Can_Get_AboutDescription()
        {
            GalleryConfiguration config = new GalleryConfiguration();
            config.About = "About";
            Assert.AreEqual("About", config.About);
        }
    }
}
